package com.retallife.user.pojo.User;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
@ApiModel(value = "用户注册信息实体类", description = "用户的注册所需要的对象")
public class UserRegistVo {
    //    required表示该属性为必需的属性。
    @ApiModelProperty(value = "用户的名字", required = true)
    @NotBlank
    private String userName;

    @ApiModelProperty(value = "用户的密码", required = true)
    @NotBlank
    private String userPassword;

    @ApiModelProperty(value = "用户的邮箱", required = true)
    @NotBlank
    private String userEmail;

}
